using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace TripleMatch
{
    public class DecorationElement : MovableElement
    {
        [SerializeField] Image m_mageElement;
        [SerializeField] Button m_buttonAdd;
        [SerializeField] Button m_buttonRemove;

        private int m_displayDecorationId;
        public int displayDecorationId { get { return m_displayDecorationId; } }

        public void InitElementData(int id)
        {
            m_displayDecorationId = id;
            DecorationInfoData decorationInfoData = DecorationsManager.S.GetDecorationInfoData(id);
            m_mageElement.sprite = decorationInfoData.sprite;
        }

        public void RefreshAddButtonState(bool hasLeft)
        {
            m_buttonAdd.gameObject.SetActive(true);
        }
    }
}
